from django.db import models


class Message(models.Model):
#    tid = models.AutoField(primary_key=True)
    type = models.IntegerField(null=True, blank=True)
    status = models.IntegerField(null=True, blank=True)
    omsisdna = models.CharField(max_length=40, db_column=u'omsisdnA', blank=True) # Field name made lowercase.
    dmsisdna = models.CharField(max_length=40, db_column=u'dmsisdnA', blank=True) # Field name made lowercase.
    content = models.CharField(max_length=1024, blank=True)
    datetimep = models.DateField(db_column=u'dateTimeP', blank=True) # Field name made lowercase. This field type is a guess.
    smscreference = models.IntegerField(null=True, db_column=u'smscReference', blank=True) # Field name made lowercase.
    dispatch_datetime = models.TextField(db_column=u'dispatch_dateTime', blank=True) # Field name made lowercase. This field type is a guess.
    form_message = models.BooleanField(null=True, blank=True)
    form_id = models.IntegerField(null=True, blank=True)
    def __unicode__(self):
        return self.tid
    class Meta:
        db_table = u'frontline_messages'
